Add coverage reporting and expand ERCOT tests#1
Merged
Conversation
Raise repo coverage above 90% by adding focused ERCOT client, historical archive, timezone, and date utility tests and ensure coverage.xml is generated. Update CI and docs to publish coverage to Codecov and reflect the workflow badge.
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
- Introduced `hooks-install` to set up pre-commit hooks after cloning. - Added `hooks-run` to manually execute pre-commit hooks on all files. - Updated README to include instructions for using pre-commit hooks and their benefits. - Added `pre-commit` as a development dependency in `pyproject.toml`.
- Changed pyright hook to a local configuration using `uv run`. - Added new dependencies in `uv.lock` for `cfgv`, `distlib`, `filelock`, `identify`, `pre-commit`, and `virtualenv`. - Cleaned up import statements in test files for consistency and clarity.
- Updated pre-commit hooks to use local configurations for ruff and ruff-format. - Cleaned up import statements in `conftest.py` and `test_ercot_helpers.py` for consistency. - Rearranged imports in `ercot.py` for better organization.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raise repo coverage above 90% by adding focused ERCOT client, historical archive, timezone, and date utility tests and ensure coverage.xml is generated. Update CI and docs to publish coverage to Codecov and reflect the workflow badge.
Note
Adds coverage reporting and substantial test expansion, plus dev ergonomics.
ci.yml;just test-coveragenow emitscoverage.xmlwith--cov-report=xml --cov-report=term-missing.pre-commit-config.yaml(ruff, ruff-format, pyright) andjusttargetshooks-install/hooks-run;pre-commitadded to dev depsutils/tz.pyDST flag normalization and ambiguous localization robustnessREADME.mdWritten by Cursor Bugbot for commit 528e1e1. This will update automatically on new commits. Configure here.